package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.domain.Category;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryMapper extends BaseMapper<Category> {
    public int saveCategory(Category category);

    public List<Category> getCategoryList(Category category);

    public int removeCategory(Category category);

    public int updateCategory(Category category);

    public Category getCategory(Integer id);

    public List<Category> searchCategory(Category category);

    public List<Integer> getCategoryIds();

    public List<String> getCategoryName(String categoryName);


    public Integer findCategoryIdByCategoryName(String categoryName);
}
